body {
    margin: 0;
    padding: 0;
}

.container {
    background-color: rgba(255, 255, 255, 0.779);
    /* Semi-transparan putih */
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.video-container {
    flex: 2;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    pointer-events: none;
    /* Agar tidak mengganggu interaksi video */
}

/* Styling default untuk desktop */
.overlay-logo {
    max-width: 500px;
    max-height: 150px;
    opacity: 0.1;
    margin: 0 auto;
    display: block;
}

/* Media query untuk tablet */
@media screen and (max-width: 1024px) {
    .overlay-logo {
        max-width: 400px;
        max-height: 120px;
        opacity: 0.1;
    }
}

/* Media query untuk mobile */
@media screen and (max-width: 768px) {
    .overlay-logo {
        max-width: 250px;
        max-height: 75px;
        opacity: 0.1;
        /* Sedikit lebih jelas di layar kecil */
    }
}

/* Media query untuk smartphone kecil */
@media screen and (max-width: 480px) {
    .overlay-logo {
        max-width: 200px;
        max-height: 60px;
        opacity: 0.3;
    }
}

/* Tambahan untuk menjaga posisi logo */
.video-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}


.video-container iframe {
    width: 100%;
    height: 400px;
    border: solid 3px white;
}


.playlist {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}


.playlist h3 {
    text-align: center;
    margin: 0;
    padding: 15px;
    background: linear-gradient(135deg, rgb(255, 111, 0) 0%, rgb(255, 111, 0) 100%);
    color: white;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
}

.playlist h3::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: all 0.6s ease;
}

.playlist h3:hover::before {
    left: 100%;
}

.playlist h3::after {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
}

/* Animasi */
@keyframes breathe {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.playlist h3 {
    animation: breathe 3s ease-in-out infinite;
}

#video-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.video-item {
    position: relative;
    padding: 15px;
    margin: 10px 0;
    background-color: black;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    color: white;
}

.home-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(45deg, rgb(255, 111, 0), rgb(255, 111, 0));
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.home-button:hover {
    transform: scale(1.05);
    background: linear-gradient(45deg, #1976D2, #1565C0);
}

.home-button i {
    font-size: 20px;
}




/* Animasi saat memuat playlist */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.video-item {
    animation: fadeInUp 0.5s ease both;
    animation-delay: calc(0.1s * var(--i));
}

.video-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s ease;
}

.video-item:hover::before {
    left: 100%;
}

.video-item:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.video-item.active {
    background: linear-gradient(to right, rgba(255, 111, 0, 0.705), rgba(255, 111, 0, 0.705));
    color: white;
    transform: scale(1.05);
}

.video-item.active::before {
    display: none;
}

/* Default styles (Laptop/Desktop) */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 30px;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .video-container iframe {
        height: 300px;
    }

    .content-container {
        flex-direction: column;
        padding: 15px;
    }

    .category-section {
        width: 100%;
    }

    .header-nav {
        padding: 10px;
    }

    .auth-buttons {
        gap: 10px;
    }

    .btn {
        padding: 8px 16px;
    }
}


.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background-color: rgba(255, 255, 255, 0.779);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.logo-container {
    max-height: 50px;
    max-width: 150px;
    transform: translateX(-35px);
}

.header-nav .auth-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    text-decoration: none;
    /* Menghilangkan garis bawah default pada link */
    display: inline-block;
    /* Agar bisa diberi padding */
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn-login {
    background-color: #4CAF50;
    color: white;
}

.btn-register {
    background-color: rgb(255, 111, 0);
    color: white;
}

.btn:hover {
    opacity: 0.8;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}


.pagination-btn {
    padding: 8px 16px;
    margin: 0 4px;
    border: none;
    border-radius: 4px;
    background: #333;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background-color: #e0e0e0;
}

.pagination-btn.active {
    background: #FF6B6B;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.back-button {
    color: #2196f3;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* Animasi berkedip */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.announcement-banner {
    background-color: rgb(255, 111, 0);
    color: white;
    padding: 10px 0;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 15s linear infinite;
}

.marquee:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100%, 0);
    }
}